class MemoryInfo(object):
    def __init__(self, *args, **kwargs):
        # 从不定参数或关键字参数中赋值
        self.total = kwargs.get('total', args[0] if len(args) > 0 else 0)
        self.available = kwargs.get('available', args[1] if len(args) > 1 else 0)
        self.used = kwargs.get('used', args[2] if len(args) > 2 else 0)
        self.usage = kwargs.get('usage', args[3] if len(args) > 3 else 0)


